#include "blind_pfs.h"
#include <omp.h>

auto Blind_PFS::Calculate() -> Answer {
	InitResult();

	double start_time = omp_get_wtime();
	#pragma omp parallel
	{
		while (omp_get_wtime() - start_time <= time_limit()) {		
			auto solution = GetRandomSolution();
			int score = Score(solution);
			PushAnswer(score, solution);
		}
	}

	return best_answer();
}